package cn.topevery.garden.entity.dto;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 违规记录表 DTO
 *
 * @author code-generate
 * @date 2022-01-20
 */
@Data
@ApiModel(value = "IllegalRecordDTO", description = "违规记录表 DTO")
public class IllegalRecordDTO implements Serializable{
    /**
     * 自增id
     */
    private Integer id;

        /** 违规对象 */
    @ApiModelProperty(value = "违规对象id")
    private String objId;

    /** 所属标段 */
    @ApiModelProperty(value = "所属标段")
    private String sectionId;

    public String sectionName ;


    /** 违纪事由 */
    @ApiModelProperty(value = "违纪事由")
    private String illegalReason;

    /** 失信等级,A:严重失信 */
    @ApiModelProperty(value = "失信等级,A:严重失信")
    private String distrustLevel;

    /** 违规日期 */
    @ApiModelProperty(value = "违规日期")
    private LocalDate illegalDate;

    /** 详细说明 */
    @ApiModelProperty(value = "详细说明")
    private String explain;

    /** 扣分  */
    @ApiModelProperty(value = "扣分 ")
    private Integer score;

    /** 登记人 */
    @ApiModelProperty(value = "登记人")
    private String registrant;

    /** 修改人  */
    @ApiModelProperty(value = "修改人 ")
    private Integer dbUpdateId;

    /** 修改时间 */
    @ApiModelProperty(value = "修改时间")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dbUpdateDate;

    @ApiModelProperty(value = "登记时间")
    public LocalDate registerDate ;
    @ApiModelProperty(value = "违规对象")
    public String objName ;

    @ApiModelProperty("扣除分数")
    private Integer count;

}
